﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AntUnion.FrameWork.Model.ModelsExt
{
    public class CrmUserExt
    {
    }

    /// <summary>
    /// 提交报告实体
    /// </summary>
    public class SubmitClueReq
    {
        //public int Uid { get; set; }
        //受害人
        public string VictimName { get; set; }
        public int VictimSex { get; set; }
        public int? VictimAge { get; set; }
        public int[] Area { get; set; }
        public string VictimAddr { get; set; }
        //监护人
        public string GuardianName { get; set; }
        public string GuardianPhone { get; set; }
        //报告人
        public string Name { get; set; }
        public string Phone { get; set; }
        public int CompanyId { get; set; }
        public string Company { get; set; }
        //线索说明
        public string Description { get; set; }
        public int  Type { get; set; }
        public List<string> Images { get; set; }
    }

    /// <summary>
    /// 线索列表实体
    /// </summary>
    public class ClueListModel
    {
        /// <summary>
        /// 线索编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 线索
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 受害人姓名
        /// </summary>
        public string VictimName { get; set; }

        /// <summary>
        /// 受害人性别
        /// </summary>
        public string VictimSex { get; set; }
        /// <summary>
        /// 受害人年龄
        /// </summary>
        public int? VictimAge { get; set; }
        /// <summary>
        /// 上报时间
        /// </summary>
        public DateTime Addtime { get; set; }
        /// <summary>
        /// 线索最新回复
        /// </summary>
        public ClueReplyModel ClueReply { get; set; }
    }
   
    /// <summary>
    /// 线索详情实体
    /// </summary>
    public class ClueModel
    {
        /// <summary>
        /// 线索编号
        /// </summary>
        public int Id { get; set; }
        //报告人
        public string Name { get; set; }
        public string Phone { get; set; }
        public string Company { get; set; }
        //受害人
        public string VictimName { get; set; }
        public string VictimSex { get; set; }
        public int? VictimAge { get; set; }
        public string VictimAddr { get; set; }
        //监护人
        public string GuardianName { get; set; }
        public string GuardianPhone { get; set; }
        //线索说明
        public string Description { get; set; }
        public List<string> Images { get; set; }
        /// <summary>
        /// 上报时间
        /// </summary>
        public DateTime Addtime { get; set; }
        /// <summary>
        /// 线索最新回复
        /// </summary>
        public List<ClueReplyModel > ClueReplyList { get; set; }
    }

    /// <summary>
    /// 线索回复
    /// </summary>
    public class ClueReplyModel
    {
        /// <summary>
        /// 回复编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 线索编号
        /// </summary>
        public int Cid { get; set; }
        /// <summary>
        /// 回复人
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string Reply { get; set; }
        /// <summary>
        /// 回复图片
        /// </summary>
        public List<string> Images { get; set; }
        /// <summary>
        /// 上报时间
        /// </summary>
        public DateTime Addtime { get; set; }
    }

    public class ReplyClueReq
    {
        /// <summary>
        /// 线索编号
        /// </summary>
        public int Cid { get; set; }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string Reply { get; set; }
        /// <summary>
        /// 回复图片
        /// </summary>
        public List<string> Images { get; set; }
    }

    public class DelImageReq
    {
        public string Url { get; set; }
    }
}
